class CountriesNameUnique < ActiveRecord::Migration
  def self.up
    execute "ALTER TABLE `countries` ADD UNIQUE (`name`)"
  end

  def self.down
    execute "ALTER TABLE `countries` DROP INDEX `name`"
  end
end
